import { Controller } from 'egg';
require('colors');

export default class IndexController extends Controller {
  public async home() {
    // let captcha = svgCaptcha.create();
    /*     var captcha = svgCaptcha.create();
        ctx.request.session.captcha = captcha.text;
    
        ctx.response.body.type('svg');
        ctx.response.body = captcha.data; */
    /*     console.log('start');
        console.log('created', captcha);
        console.log('end'); */
    /*  const data = { name: 'hello world' };
     await ctx.render('index', data); */
  }

}
